<%@ page import="org.springside.core.Constants"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message key="workflowFileinbox_sent_label1" var="workflowFileinbox_sent_label1"/>
<ff:boxportlet header="${workflowFileinbox_sent_label1}">
	  <c:if test="${param.y==10}">
       <c:set var="length" value="4"></c:set>
    </c:if>
    
     <c:if test="${param.y != 10}">
       <c:set var="length" value="${param.y}"></c:set>
     </c:if>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
	<tr>
		<td valign="top">     
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_left_ico">
        <c:forEach items="${workflowFileinboxs}" var="workflowFileinbox"> 
        <tr>
                <td>
		        	
		        	<A href="#"
		        		onClick='mainJump("/modules/workflow/workflowFileinbox.do?method=show&id=${workflowFileinbox.id}","<%=Constants.USER_THEME_FRAME %>")'
		        		title="${workflowFileinbox.workflowFile.title}">
						<c:if test="${fn:length(workflowFileinbox.workflowFile.title)> length}">
		                	${fn:substring(workflowFileinbox.workflowFile.title,0,length)}...
		                </c:if>
		                <c:if test="${fn:length(workflowFileinbox.workflowFile.title)<= length}">
		                	${workflowFileinbox.workflowFile.title}
		                </c:if> 
		        	</A>
                </td>
              </tr>
            </c:forEach>
            <c:if test="${fn:length(workflowFileinboxs) < 1}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(workflowFileinboxs) < 2}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(workflowFileinboxs) < 3}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(workflowFileinboxs) < 4}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(workflowFileinboxs) < 5}"> <tr><td>&nbsp;</td></tr></c:if>
            
            </table> 

	<table width="100%" height="17">
        <tr>
          <td>&nbsp;</td>
          <td width="30" class="tbl_more_ico_td">
          <a href="#" class="link_portlet" onClick='mainJump("/modules/workflow/workflowFileinbox.do?method=myDraft&ec_s_startdate=desc","<%=Constants.USER_THEME_FRAME %>")'
         	title="<fmt:message key="common_more" />"><fmt:message key="common_more" /></a></td>
        </tr>
     </table>
		</td>
	</tr>
</table>
</ff:boxportlet>

